import request from "../http/axios";

export function modulesAll(data) {
  return request({
    url: "/api/modules/all",
    method: "get",
    param: data,
  });
}

//获取当前配置
export function getConfig(data) {
  return request({
    url: "/api/config",
    method: "get",
    param: data,
  });
}
//设置/更新配置
export function setConfig(data) {
  return request({
    url: "api/config",
    method: "post",
    data,
  });
}
